package com.pfs.internal.timestamp.repositories;

import java.io.Serializable;
import java.util.List;

import org.hibernate.criterion.Criterion;

public interface CustomRepository<T, ID extends Serializable> {
	Class<T> getEntityClass();
	long count();
	long countByCriteria(Criterion... criterion);
	List<T> findAll();
	T findOne(ID id);
}
